package com.ruoyi.goods.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 all_good
 *
 * @author ruoyi
 * @date 2022-05-08
 */
public class AllGood extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 物品类型 0。英语物品。1. 音乐物品。2.数学物品，3.机房物品，4.其他物品 */
    @Excel(name = "物品类型 0。英语物品。1. 音乐物品。2.数学物品，3.机房物品，4.其他物品")
    private Long typeId;

    /** 用品名称 */
    @Excel(name = "用品名称")
    private String goodName;

    /** 总数 */
    @Excel(name = "总数")
    private Long total;

    /** 已预约数量 */
    @Excel(name = "已预约数量")
    private Long reservationMade;

    /** 剩余 */
    @Excel(name = "剩余")
    private Long remainder;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId()
    {
        return typeId;
    }
    public void setGoodName(String goodName)
    {
        this.goodName = goodName;
    }

    public String getGoodName()
    {
        return goodName;
    }
    public void setTotal(Long total)
    {
        this.total = total;
    }

    public Long getTotal()
    {
        return total;
    }
    public void setReservationMade(Long reservationMade)
    {
        this.reservationMade = reservationMade;
    }

    public Long getReservationMade()
    {
        return reservationMade;
    }
    public void setRemainder(Long remainder)
    {
        this.remainder = remainder;
    }

    public Long getRemainder()
    {
        return remainder;
    }
    public void setCreatTime(Date creatTime)
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime()
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeId", getTypeId())
            .append("goodName", getGoodName())
            .append("total", getTotal())
            .append("reservationMade", getReservationMade())
            .append("remainder", getRemainder())
            .append("creatTime", getCreatTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
